"""
1， 创建一个装饰器，一个待装饰的函数

"""


# 定义一个让文字加粗的装饰器
def makeBlod(func):
    def function_in():
        return "<b>"+func()+"</b>"

    return function_in


# 定义一个让文字倾斜的装饰器
def makeItalic(func):
    def function_in():
        return "<i>"+func()+"</i>"

    return function_in


# <b>helloworld-1<b>
@makeBlod
# test = makeBlod(test)
def test():
    return "helloworld-1"

@makeItalic
def test2():
    return "helloworld-2"


@makeItalic
@makeBlod
def test3():
    return "helloworld-3"

# print(test())  # <b>helloworld-1</b>
# print(test2()) # <i>helloworld-2</i>
print(test3())